#ifndef ELEMENTSTYTLE_H
#define ELEMENTSTYTLE_H
#include <qglobal.h>
#if defined(OFFICEDOCMENT_LIBRARY)
#  define OFFICEDOCMENTS_HARED_EXPORT Q_DECL_EXPORT
#else
#  define OFFICEDOCMENTS_HARED_EXPORT Q_DECL_IMPORT
#endif
#include <qfont.h>
#include <qcolor.h>
class ElementStytle : public QColor ,public QFont
{
public:
    ElementStytle():  QColor(Rgb),QFont("微软雅黑") {
        this->setRgb(0,0,0);
        this->setPointSize(12);
        this->setPixelSize(12);
    }
    ElementStytle(const ElementStytle& elestytle):QColor(elestytle),QFont(elestytle)
    {
    }
    ElementStytle& operator =(const ElementStytle &absEle){
        QFont::operator =(absEle);
        QColor::operator =(absEle);
        return *this;
    }
};


#endif // ELEMENTSTYTLE_H
